﻿using Basic.UserRemoteModel.User;
using Basic.UserRemoteModel.User.Model;
using Basic.UserService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserService.RpcEvent
{
    internal class UserRegEvent : IRpcApiService
    {
        private readonly IMiniUserRegService _Service;

        public UserRegEvent (IMiniUserRegService service)
        {
            this._Service = service;
        }

        public UserLoginResult MiniRegUser (MiniRegUser reg)
        {
            return this._Service.UserReg(reg.Datum);
        }
    }
}
